<%@page language="java" import="com.scalar.chiptrack.finance.integration.payables.ShippingMethod" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<%@ page import="com.scalar.chiptrack.utils.ConfigManager"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html:html>
<HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>
<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
<SCRIPT language="JavaScript" src="<%=chipTracContext%>/jsp/includes/scripts/validations.js">
</script>
<SCRIPT language="JavaScript1.2">
function submit()
{
    document.shippingMethodForm.shippingMethod.disabled = false;
    document.shippingMethodForm.submit();
}
</SCRIPT>
</HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<!-- Top Header Start-->

<%@include file="/jsp/includes/header.jsp"  %>

<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->

<%@include file="/jsp/finance/purchase_order_menu.jsp" %>

</TD>
<!-- end of the side navigations -->

<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<!-- from here your body starts -->
<P>
<TABLE BORDER="0" WIDTH="100%">
    <TR>
        <TD WIDTH="100%">
            <TABLE BORDER="0" WIDTH="98%">
				<TR>
					<TD WIDTH="100%" class="NArialW">
			    		<P ALIGN="CENTER"><bean:message key="label.sales.salesOrder.ShippingMethod" />s Setup
					</TD>
				</TR>
                <TR>
                    <TD><chiptrack:info styleClass="NArialL" /></TD>
                </TR>
                <TR>
                    <TD><chiptrack:errors styleClass="NArialL" /></TD>
                </TR>
                <TR>
                    <TD><chiptrack:moreErrorInfo styleClass="NArialL" /></TD>
                </TR>
			</TABLE>
            <BR><BR>
            <html:form name="shippingMethodForm" action="/shippingMethod.do?action=save" method="post" type="com.scalar.chiptrack.finance.integration.payables.forms.ShippingMethodForm">
            <TABLE BORDER="0" WIDTH="98%" CLASS="NArialL">
				<TR>
					<TD WIDTH="9%">&nbsp;</TD>
					<TD WIDTH="19%"><bean:message key="label.sales.salesOrder.ShippingMethod" />:</TD>
					<TD WIDTH="1%">&nbsp;</TD>
					<TD WIDTH="38%">
                        <logic:equal name="action" value="edit">
                            <html:text name="shippingMethodForm" property="shippingMethod" size="15" styleClass="txfield" disabled="true"/>
                        </logic:equal>
                        <logic:notEqual name="action" value="edit">
                            <html:text name="shippingMethodForm" property="shippingMethod" size="15" styleClass="txfield"/>
                        </logic:notEqual>
                    </TD>
					<TD WIDTH="3%">&nbsp;</TD>
					<TD WIDTH="2%">&nbsp;</TD>
					<TD WIDTH="27%">&nbsp;</TD>
					<TD WIDTH="1%">&nbsp;</TD>
				</TR>
				<TR>
					<TD WIDTH="9%">&nbsp;</TD>
					<TD WIDTH="19%">Description:</TD>
					<TD WIDTH="1%">&nbsp;</TD>
					<TD WIDTH="38%"><html:textarea name="shippingMethodForm" property="description" rows="2" cols="27" styleClass="txfield"/></TD>
					<TD WIDTH="3%">&nbsp;</TD>
					<TD WIDTH="2%">&nbsp;</TD>
					<TD WIDTH="27%">&nbsp;</TD>
					<TD WIDTH="1%">&nbsp;</TD>
				</TR>
				<TR>
			    	<TD WIDTH="9%">&nbsp;</TD>
					<TD WIDTH="19%">Shipping Type:</TD>
					<TD WIDTH="1%">&nbsp;</TD>
					<TD WIDTH="38%">
                        <html:radio name="shippingMethodForm" property="shippingType" value="0" styleClass="txfield" /> Pick Up
                        <html:radio name="shippingMethodForm" property="shippingType" value="1" styleClass="txfield"/> Delivery
                    </TD>
					<TD WIDTH="3%">&nbsp;</TD>
					<TD WIDTH="2%">&nbsp;</TD>
					<TD WIDTH="27%">&nbsp;</TD>
					<TD WIDTH="1%">&nbsp;</TD>
				</TR>
				<TR>
				    <TD WIDTH="9%">&nbsp;</TD>
					<TD WIDTH="19%">Carrier:</TD>
					<TD WIDTH="1%">&nbsp;</TD>
					<TD WIDTH="38%"><html:text name="shippingMethodForm" property="carrier" size="15" styleClass="txfield"/></TD>
					<TD WIDTH="3%">&nbsp;</TD>
					<TD WIDTH="2%">&nbsp;</TD>
					<TD WIDTH="27%">&nbsp;</TD>
					<TD WIDTH="1%">&nbsp;</TD>
				</TR>
				<TR>
					<TD WIDTH="9%">&nbsp;</TD>
					<TD WIDTH="19%">Carrier Account:</TD>
					<TD WIDTH="1%">&nbsp;</TD>
					<TD WIDTH="38%"><html:text name="shippingMethodForm" property="carrierAccount" size="15" styleClass="txfield"/></TD>
					<TD WIDTH="3%">&nbsp;</TD>
					<TD WIDTH="2%">&nbsp;</TD>
					<TD WIDTH="27%">&nbsp;</TD>
					<TD WIDTH="1%">&nbsp;</TD>
				</TR>
				<TR>
					<TD WIDTH="9%">&nbsp;</TD>
					<TD WIDTH="19%">Contact:</TD>
					<TD WIDTH="1%">&nbsp;</TD>
					<TD WIDTH="38%"><html:text name="shippingMethodForm" property="contact" size="15" styleClass="txfield"/></TD>
					<TD WIDTH="3%">&nbsp;</TD>
					<TD WIDTH="2%">&nbsp;</TD>
					<TD WIDTH="27%">&nbsp;</TD>
					<TD WIDTH="1%">&nbsp;</TD>
				</TR>
				<TR>
				    <TD WIDTH="9%">&nbsp;</TD>
					<TD WIDTH="19%">Phone Number:</TD>
					<TD WIDTH="1%">&nbsp;</TD>
					<TD WIDTH="38%"><html:text name="shippingMethodForm" property="phoneNumber" size="15" styleClass="txfield" onkeypress='validatePhoneNumber(this)'/></TD>
					<TD WIDTH="3%">&nbsp;</TD>
					<TD WIDTH="2%">&nbsp;</TD>
					<TD WIDTH="27%">&nbsp;</TD>
					<TD WIDTH="1%">&nbsp;</TD>
				</TR>
				<TR>
					<TD WIDTH="9%">&nbsp;</TD>
					<TD WIDTH="19%">&nbsp;</TD>
					<TD WIDTH="1%">&nbsp;</TD>
					<TD WIDTH="38%">&nbsp;</TD>
				    <TD WIDTH="3%">&nbsp;</TD>
					<TD WIDTH="2%">&nbsp;</TD>
					<TD WIDTH="27%">&nbsp;</TD>
					<TD WIDTH="1%">&nbsp;</TD>
				</TR>
			</TABLE>
            </html:form>
            <BR><BR>
			<TABLE BORDER="0" WIDTH="98%">
				<TR>
					<TD WIDTH="7%">&nbsp;</TD>
					<TD WIDTH="25%">
    					<P ALIGN="RIGHT"><A href="javascript:submit()" ><IMG SRC="<%=chipTracContext%>/jsp/includes/images/save.gif" WIDTH="53" HEIGHT="17" ALIGN="BOTTOM" BORDER="0" ></A>
					</TD>
					<TD WIDTH="28%"><A href="#" ><IMG SRC="<%=chipTracContext%>/jsp/includes/images/cancel.gif" WIDTH="53" HEIGHT="17" ALIGN="BOTTOM" BORDER="0"></TD><A>
					<TD WIDTH="40%">&nbsp;</TD>
				</TR>
			</TABLE>
		</TD>
	</TR>
</TABLE>
</P>
<!-- Footer starts here -->

<%@include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
</BODY>
</html:html>